package com.artezio.buyndrive.service.impl;

import com.artezio.buyndrive.dao.TurnDAO;
import com.artezio.buyndrive.domain.Carservice;
import com.artezio.buyndrive.domain.SectionTurn;
import com.artezio.buyndrive.domain.Turn;
import org.springframework.stereotype.Service;
import com.artezio.buyndrive.service.TurnService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;


@Service
public class TurnServiceImpl extends AbstractService<Turn, TurnDAO> 
    implements TurnService{
     
    @Autowired
    @Override
    public void setDao(TurnDAO dao) {
        super.dao = dao;
    }

    @Transactional
    @Override
    public List<Turn> getByCarserviceAndSection(Carservice carservice, SectionTurn sectionTurn) {
       return dao.getByCarserviceAndSection(carservice, sectionTurn);
    }
}